package com.tl.commonlibrary.network;

/**
 * Created by Administrator on 2017/6/9 0009.
 */

public class ErrorResponse {
    private static final String ERROR_NO_FIND_FILE = "300005";
    private static final String ERROR_IMPURITY_CHANGED = "300036";
    private static final String ERROE_OPERATOR_USER="300030";
    public String code;
    public String msg;

    /**
     * 服务器不存在此图片
     *
     * @return
     */
    public boolean notFindFile() {
        return ERROR_NO_FIND_FILE.equals(code);
    }

    public boolean impurityChanged() {
        return ERROR_IMPURITY_CHANGED.equals(code);
    }

    public boolean businessFailed() {
        return RequestCallBack.FAILED_BUSINESS.equals(code);
    }

    public boolean operatorUser(){
        return  ERROE_OPERATOR_USER.equals(code);
    }
}
